<%--
  Created by IntelliJ IDEA.
  User: lingwo
  Date: 2016/12/30
  Time: 13:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 导入头部top文件 start -->
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>招聘系统</title>

    <meta name="keywords" content="招聘系统">
    <meta name="description" content="招聘系统">

    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="${path}/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="${path}/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="${path}/static/css/ui-dialog.css?v=4.0.0" rel="stylesheet">
    <link href="${path}/static/css/animate.min.css" rel="stylesheet">
    <link href="${path}/static/css/main.css?v=1.0.0" rel="stylesheet">
    <link href="${path}/static/css/reset.css?v=1.0.0" rel="stylesheet">
    <script>
        var G_Path = {
            path: "${path}"
        };
        var staticServer = "${baseConfig.staticServer}";
    </script>
</head>
<body style="font-size: 14px">
<div class="zp_top">
    <div class="zp_pageCenter clearfix">
        <input id="resumesId" name="resumesId" type="hidden">
        <button class="btn btn-success fr" id="submitResumes" name="submitResumes">投个简历</button>
        <h5>临我网络招聘</h5>

        <h1>${model.name}</h1>
        <h4>
            <span>${model.salaryMin}k-${model.salaryMax}k</span>/${model.cityName}/${model.workExperienceName}/${model.educationName}/全职
        </h4>

        <div class="zp_mark tc">
            ${model.jobTypeName}
        </div>
        <p>${model.createDate} 发布于招聘平台</p>
    </div>
</div>
<div class="zp_pageCenter zp_content">
    ${model.content}
    <div class="zp_contentModel">
        <h4>工作地址：</h4>

        <p><span>${model.cityName}</span> - ${model.addressName}</p>
    </div>
    <div class="zp_contentModel">
        <h4>职位发布者：</h4>

        <div class="zp_jobRelease">
            <img src="/static/img/tu-40.png">

            <p>&nbsp;${model.creatorName}</p>
            <g>&nbsp;联合创始人</g>
        </div>
    </div>
</div>
<script src="/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/js/plugins/dialog/dialog-min.js"></script>
<script src="/static/js/plugins/dialog/dialog-plus-min.js"></script>
<script src="/static/js/cateDialog.js"></script>
<script>
    var jobId = "${model.id}";
    $(document).ready(function () {
        $("#submitResumes").click(function () {
            $("#submitResumes").cate({
                title: "",
                url: G_Path.path + "/resume/json",
                param: {},
                liveSearch: false,
                "id": "resumesId",
                callback: function () {
                    var resumeId = $("#resumesId").val();
                    $.get(G_Path.path + "/job/resume/inbox/save?jobId=" + jobId + "&resumeId=" + resumeId, function (text) {
                        var data = $.parseJSON(text);
                        if (data.success) {
                            alert("投递成功");
                        }
                    });
                }
            });
        })
    })
</script>
</body>
</html>